package com.team11.server.controller.admin;

import com.team11.server.pojo.SelKcInformation;
import com.team11.server.service.admin.Admin_SelAllKc_Service;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@CrossOrigin
@RestController
@Api(tags = "管理员接口")
public class Admin_SelAllKc_Controller {
    @Autowired
    private Admin_SelAllKc_Service admin_selAllKc_service;
    @ApiOperation("获取课程信息(进入课程管理界面)")
    @GetMapping("/SelAllKc")
    public List<SelKcInformation> selAllKc(){
        return admin_selAllKc_service.selAllKc();
    }

}
